import request from '@/utils/request'

const api_name = '/ashes/brave'

export default {
  getPageList(page, limit, searchObj) {
    return request({
      url: `${api_name}/queryMsgListData/${page}/${limit}`,
      method: 'post',
      data: searchObj
    })
  },
  deleteMsgInfo(messageId){
    return request({
      url: `${api_name}/deleteMsgInfo`,
      method: 'post',
      data: {
        messageId: messageId
      }
    })
  },
  show(id) {
    return request({
      url: `${api_name}/queryMsgInfoById/${id}`,
      method: 'post'
    })
  },
  save(searchObj){
    return request({
      url: `${api_name}/addMsgInfo`,
      method: 'post',
      data: searchObj
    })
  },
  update(searchObj){
    return request({
      url: `${api_name}/updateMsgInfo`,
      method: 'post',
      data: searchObj
    })
  }
}

